export default {
  inserted (el, binding, vnode) {
    el.addEventListener('input', () => {
      if (!el.disabled) {
        el.disabled = true
        setTimeout(() => {
          if (binding.value) binding.value()
          el.disabled = false
        }, 3000)
      }
    })
  }
}
